import request from '@/utils/request'

// 获取群组下所有成员
export function getGroupsUser(data) {
  return request({
    url: '/api/System/GroupUser/' + data.id,
    method: 'get',
  })
}

// 获取群组列表
export function getGroups(data) {
    return request({
      url: '/api/System/Group',
      method: 'get',
      params: data
    })
}

// 添加群组
export function addGroup(data) {
    return request({
      url: '/api/System/Group',
      method: 'post',
      params: data
    })
}

// 修改群组
export function updateGroup(data) {
  return request({
    url: '/api/System/Group',
    method: 'put',
    params: data
  })
}

// 删除群组
export function deleteGroup(data) {
  return request({
    url: '/api/System/Group',
    method: 'delete',
    params: data
  })
}